package com.simple.piger.enums;

import org.apache.commons.lang3.StringUtils;

public enum ApplyUserStatusEnums {
    FINDING("FINDING", "离职-随时到岗"),
    WORKING("WORKING", "在职-暂不考虑"),
    WORKED("WORKED", "在职-正在找工作"),
    WORKED_MONTH("FINDING", "在职-月内到岗");

    private String item;

    private String desc;

    ApplyUserStatusEnums(String item, String desc) {
        this.item = item;
        this.desc = desc;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String transfer(String status) {
        if (StringUtils.isBlank(status)) {
            return null;
        }
        for (ApplyUserStatusEnums enums : ApplyUserStatusEnums.values()) {
            if (enums.getItem().equals(status)) {
                return enums.getDesc();
            }
        }
        return null;
    }
}
